#!/bin/sh
dirPath=/data/bak/mysql/fof/$(date '+%Y%m%d')
echo $dirPath
mkdir -p $dirPath

mysqldump -h127.0.0.1 -uroot -p01827746521 fof | gzip > $dirPath/fof.sql.gz